#ifndef __PLAYER_THREAD_H__
#define __PLAYER_THREAD_H__

#include "utils/basethread.h"
#include "./playerai.h"

class PlayerThread : public BaseThread
{
public:
	PlayerThread();
	~PlayerThread();

	Player* GetPlayer();

	void Init(int id,
		string strName, 
		Point startPos, 
		float startAngle, 
		Point hpPos,
		float z,
		Color color);

private:
	void OnBeforeRender(float differTime);
	void OnPlayerDestroy();
	void ThreadFunc();

private:
	PlayerAI* m_player;

	size_t m_queueIndex;
};

#endif